"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var pubUrl = "https://www.fastmock.site/mock/6db463daa51e9e80be6f1f2f7611e84b/community";
var http = function (options) {
    return new Promise(function (resolve, reject) {
        wx.request({
            url: pubUrl + options.url,
            method: options.method || 'get',
            data: options.data || {},
            header: options.header || {
                'content-type': 'application/x-www-form-urlencoded'
            },
            success: resolve,
            fail: reject
        });
    });
};
exports.default = http;
